package com.tjetc.dao;

import com.tjetc.domain.Order;
import com.tjetc.utils.PageInfo;

import java.sql.Date;
import java.sql.SQLException;
import java.util.List;

public interface OrderDao {

    Order listDocOrder(Date date, String time, int did) throws SQLException;

    void addOrder(Order order) throws SQLException;

    List<Order> listMyOrder(PageInfo<Order> pageInfo,int did,int status) throws SQLException;

    int getCount(int did,int status) throws SQLException;

    //医生就诊完修改该条预约order的状态
    void updateStatusById(int id) throws SQLException;

    Order findByDid(int id) throws SQLException;

    List<Order> listInOrder(int did,Date date,String time) throws SQLException;

    //根据uid查询用户预约日期，为了反馈一个当时的天气预警
    List<Order> listUserOrder(int uid) throws SQLException;

    List<Order> listMyOrderTime(int did, Date date) throws SQLException;
}
